package com.hyk.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyk
 * @since 2021-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Menu对象", description="菜单表")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "注解")
    private Long id;

    @ApiModelProperty(value = "菜单的名称")
    private String name;

    @ApiModelProperty(value = "多少级别的菜单")
    private Integer type;

    @ApiModelProperty(value = "父id")
    private Long parentId;

    @ApiModelProperty(value = "0:菜单，1:按钮")
    private Integer isButton;

    @ApiModelProperty(value = "所对应的接口是什么")
    private String path;

    private Date createTime;

    private Date updateTime;

    @TableField(exist = false)
    private List<Role> roles;

}
